<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="banner banner-tabs">
			<li><a href="{:url('Banner/index')}">轮播管理</a></li>
			<li class="active"><a href="{:url('Banner/edit')}">修改轮播</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Banner/editPost')}">
			<div class="form-group">
				<label for="input-url" class="col-sm-2 control-label">地址<span class="form-required"></span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-url" name="url" value="{$banner.url}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-title" class="col-sm-2 control-label">图片<span class="form-required"></span></label>
				<div class="col-md-6 col-sm-10">
					<input id="photo-1" type="hidden" name="image" value="{$banner.image}">
					<input id="photo-1-name" type="text" title="图片名称" class="form-control" readonly disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-title" class="col-sm-2 control-label"><span class="form-required"></span></label>
				<div class="col-md-6 col-sm-10">
					<img src="/upload/{$banner.image}" id="photo-1-preview" style="width: 200px" >
					<div><a style="margin-top: 10px" class="btn btn-primary" href="javascript:uploadOneImage('图片上传','#photo-1');">上传</a></div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" value="{$banner.id}" name="id">
					<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
	<script type="text/javascript">
		//编辑器路径定义
		var editorURL = GV.WEB_ROOT;
	</script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript">
		var editorcontent = new baidu.editor.ui.Editor();
		editorcontent.render('content');
	</script>
</body>
</html>
